package cn.com.generaldata.os.importpojo;

import com.sun.xml.internal.bind.CycleRecoverable;

public class AreaPerform implements java.io.Serializable, CycleRecoverable {

	private static final long serialVersionUID = -6404314064705214469L;

	private String id; // 行政区划Id
	private String areaName; // 行政区划中文名称
	private String areaDesc; // 行政区划拼音描述
	private String areaCode; // 行政区划代码
	private String areaZimuCode; // 市县排序
	private String parentId; // 上级ID

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public String getAreaDesc() {
		return areaDesc;
	}

	public void setAreaDesc(String areaDesc) {
		this.areaDesc = areaDesc;
	}

	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	public String getAreaZimuCode() {
		return areaZimuCode;
	}

	public void setAreaZimuCode(String areaZimuCode) {
		this.areaZimuCode = areaZimuCode;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	/**
	 * 解决CXF循环引用问题.
	 * 
	 * @param arg0
	 * @return
	 */
	@Override
	public Object onCycleDetected(Context arg0) {
		AreaPerform temp = new AreaPerform();
		temp.setId(id);
		return temp;
	}

	public AreaPerform() {
		super();
	}

	public AreaPerform(String id, String areaName, String areaDesc, String areaCode, String areaZimuCode,
			String parentId) {
		super();
		this.id = id;
		this.areaName = areaName;
		this.areaDesc = areaDesc;
		this.areaCode = areaCode;
		this.areaZimuCode = areaZimuCode;
		this.parentId = parentId;
	}

}
